package com.springboot.astra.bean;

public class Reply {
    private Integer replyId;
    private Integer userId; //插入的时候用
    private Integer postmainId;
    private String replybody;
    private String createTime;
    private String updateTime;
    private Boolean isDelete;
    private Boolean isReply;
    private User user;


    public Reply() {
    }

    public Reply(Integer replyId, Integer postmainId, String replybody, String createTime, String updateTime, Boolean isDelete, User user) {
        this.replyId = replyId;
        this.postmainId = postmainId;
        this.replybody = replybody;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
        this.user = user;
    }

    public Reply(Integer replyId, Integer userId, Integer postmainId, String replybody, String createTime, String updateTime, Boolean isDelete, Boolean isReply, User user) {
        this.replyId = replyId;
        this.userId = userId;
        this.postmainId = postmainId;
        this.replybody = replybody;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.isDelete = isDelete;
        this.isReply = isReply;
        this.user = user;
    }

    public Boolean getReply() {
        return isReply;
    }

    public void setReply(Boolean reply) {
        isReply = reply;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getReplyId() {
        return replyId;
    }

    public void setReplyId(Integer replyId) {
        this.replyId = replyId;
    }

    public Integer getPostmainId() {
        return postmainId;
    }

    public void setPostmainId(Integer postmainId) {
        this.postmainId = postmainId;
    }

    public String getReplybody() {
        return replybody;
    }

    public void setReplybody(String replybody) {
        this.replybody = replybody;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDelete() {
        return isDelete;
    }

    public void setDelete(Boolean delete) {
        isDelete = delete;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
